package com.dyzx.hbb.modules.sys.service;

import com.dyzx.hbb.modules.sys.entity.SysRoleUser;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author Administrator
* @description 针对表【sys_role_user(用户配置角色表)】的数据库操作Service
* @createDate 2025-04-14 13:29:08
*/
public interface SysRoleUserService extends IService<SysRoleUser> {

    List<Long> getUserIdsByRoleId(Long roleId);
    List<Long> getRoleIdsByUserId(Long userId);

    boolean deleteRoleUsers(Long roleId, List<Long> userIds);

    boolean assignUsers(Long roleId, List<Long> userIds);

    void userByRoles(Long id, List<Long> roleIds);
}
